<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Add Appointment</title>
</head>
<body>
    <h1>Add New Appointment</h1>
    <form action="/appointment/save" method="post">
        <div>
            <label for="title">Title:</label>
            <input type="text" id="title" name="title" required>
        </div>
        <div>
            <label for="description">Description:</label>
            <textarea id="description" name="description"></textarea>
        </div>
        <div>
            <label for="startTime">Start Time:</label>
            <input type="datetime-local" id="startTime" name="startTime" required>
        </div>
        <div>
            <label for="endTime">End Time:</label>
            <input type="datetime-local" id="endTime" name="endTime" required>
        </div>
        <div>
            <label for="location">Location:</label>
            <input type="text" id="location" name="location">
        </div>
        <div>
            <label for="status">Status:</label>
            <select id="status" name="status">
                <option value="1">Scheduled</option>
                <option value="2">Completed</option>
                <option value="3">Cancelled</option>
            </select>
        </div>
        <button type="submit">Save</button>
    </form>
    <br/>
    <a href="/appointment/list">Back to List</a>
</body>
</html>